
const {contextBridge,ipcRenderer,app} = require('electron')

contextBridge.exposeInMainWorld('myApi',{
    closeWindows:()=>{
      ipcRenderer.send('close-window')
    },
    miniWindows:()=>{
      ipcRenderer.send('mini-window')
    },
    maximizeWindow: () => ipcRenderer.send('toggle-maximize'),
    moveWindow: (deltaX, deltaY) => ipcRenderer.send('move-window', deltaX, deltaY),
    quitApp: () => ipcRenderer.send('quit-app')
})